<?php
require_once(dirname(__FILE__) . '/config/index.php');

class TestOfTimestamp extends UnitTestCase {

	public function testNow() {
		$this->assertEqual(Nina_Timestamp::now(), date("YmdHis"));
	}
	
	public function testToNinaDate() {
		$this->assertEqual(Nina_Timestamp::toNinaDate(), date("YmdHis"));
	}
	
	public function testGetDate() {
		$this->assertEqual(Nina_Timestamp::getDate(), date("d/m/Y"));
	}
	
	public function testGetPrettyDate() {
		$this->assertEqual(Nina_Timestamp::getPrettyDate(), date("D jS M 'y"));
	}
	
	public function testGetTime() {
		$this->assertEqual(Nina_Timestamp::getTime(), date("H:i:s"));
	}
	
	public function testGetDateTime() {
		$this->assertEqual(Nina_Timestamp::getDateTime(), date("d/m/Y H:i:s"));
	}
	
	public function testGetPrettyDateTime() {
		$this->assertEqual(Nina_Timestamp::getPrettyDateTime(), date("D jS M 'y g:ia"));
	}
	
	public function testGetMysqlDateTime() {
		$this->assertEqual(Nina_Timestamp::getMysqlDateTime(), date("Y-m-d H:i:s"));
	}
	
	public function testGetDay() {
		$this->assertEqual(Nina_Timestamp::getDay(), date("d"));
	}
	
	public function testGetMonth() {
		$this->assertEqual(Nina_Timestamp::getMonth(), date("m"));
	}
	
	public function testGetYear() {
		$this->assertEqual(Nina_Timestamp::getYear(), date("Y"));
	}
	
	public function testGetHour() {
		$this->assertEqual(Nina_Timestamp::getHour(), date("H"));
	}
	
	public function testGetMinute() {
		$this->assertEqual(Nina_Timestamp::getMinute(), date("i"));
	}
	
	public function testGetSecond() {
		$this->assertEqual(Nina_Timestamp::getSecond(), date("s"));
	}
}
